package com.djhu.es.core.annotation;

import java.lang.annotation.*;

/**
 * Created by zw on 2017/12/28.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface QueryAnnotation {
    public QueryType QueryType() default QueryType.TERMQUERY;

    public LogicType LogicType() default LogicType.MUST;

    //查询字段名称 为空就用字段名
    public String  alias() default "";

}
